package com.example.demo1.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ExceptionEnum {

    NEED_USER_NAME(10001, "用户名不能为空"), NEED_PASSWORD(10001, "密码不能为空"), USER_EXTI(10001, "用户名已存在"),
    ITEM_EXTI(10001, "该类目已存在"), PASS_WORD_ERROR(10001, "密码错误"), SYSTEM_ERROR(20000, "服务器错误"),
    USER_ADD_FAIL(10001, "添加失败"),

    NEED_USER_ID(10001, "用户ID不能为空");

    Integer code;
    String msg;

}
